/*
 * Hidden Equity LLC
 * Author: Maksym Fedyay, Kyiv, mcsimf@gmail.com
 * Date: 29.02.2012
 */

package com.hiddenequity.servicedaccountservice;

import com.hiddenequity.utils.AuthService;
import com.hiddenequity.utils.SOAPUtils;
import com.hiddenequity.utils.UrlBuncher;

public class ServicedAccountService {
	
	public static final String URL_SERVICED_ACCOUNT_SERVICE = UrlBuncher.URL_BASE_MCM  + "ServicedAccountService";
		
	public static String getServicedAccountGraph(){
		
//		String SOAPBody = 
//				"<soap:Body>" +
//					"<get xmlns=" + SOAPUtils.XMLNS_MCM  +
//						"xmlns:xsi="+ SOAPUtils.XMLNSXSI  +">" +
//								"<selector/>" +
//
//				"</get>" +
//			"</soap:Body>";
		
		String envelope = "<?xml version='1.0' encoding='UTF-8'?>" +
				"<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' " +
		"xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' " +
		"xmlns:xsd='http://www.w3.org/2001/XMLSchema' " +
		"xmlns:cm='https://adwords.google.com/api/adwords/cm/v201109' " +
		"xmlns:mcm='https://adwords.google.com/api/adwords/mcm/v201109'> " +
		" <soap:Header> " +
		" <mcm:RequestHeader> " +
		" <cm:authToken>" + AuthService.authToken  + "</cm:authToken> " +
		" <cm:applicationToken>McSimF</cm:applicationToken> " +
		" <cm:developerToken>" + AuthService.devToken  + "</cm:developerToken>" +
		" </mcm:RequestHeader> " +
		"</soap:Header> " +
		"<soap:Body> " +
		"<get xmlns='https://adwords.google.com/api/adwords/mcm/v201109'> " +
		"<selector /> " +
		"</get> " +
		"</soap:Body> " +
		"</soap:Envelope> " ;
		
			       
			    
		//String envelope = SOAPUtils.buildMCMEnvelope(SOAPBody);
		return envelope; 

	}
	
}
